package cn.${package}.client;
import cn.${package}.pojo.${table.className};
import cn.cs.common.EmptyUtils;
import cn.cs.common.Page;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import cn.cs.common.Constants;
@FeignClient(name = "cs-item-provider", configuration = CsConfiguration.class, fallback = ${table.className}ClientFallBack.class)
public interface Rest${table.className}Client {
    @RequestMapping(value = "/get${table.className}ById",method = RequestMethod.POST)
    public ${table.className} get${table.className}ById(Long id)throws Exception;

    @RequestMapping(value = "/get${table.className}ListByMap",method = RequestMethod.POST)
    public List<${table.className}>	get${table.className}ListByMap(Map<String,Object> param)throws Exception;

    @RequestMapping(value = "/get${table.className}CountByMap",method = RequestMethod.POST)
    public Integer get${table.className}CountByMap(Map<String,Object> param)throws Exception;

    @RequestMapping(value = "/csAdd${table.className}",method = RequestMethod.POST)
    public Integer csAdd${table.className}(${table.className} ${lowerClassName})throws Exception;

    @RequestMapping(value = "/csModify${table.className}",method = RequestMethod.POST)
    public Integer csModify${table.className}(${table.className} ${lowerClassName})throws Exception;

    @RequestMapping(value = "/csDelete${table.className}ById",method = RequestMethod.POST)
    public Integer csDelete${table.className}ById(Long id)throws Exception;

    @RequestMapping(value = "/query${table.className}PageByMap",method = RequestMethod.POST)
    public Page<${table.className}> query${table.className}PageByMap(Map<String,Object> param,Integer pageNo,Integer pageSize)throws Exception;

}
